﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TuVan.aspx.cs" Inherits="TuVan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="boxNewsHeadBox"><a href="#">TƯ VẤN LÀM ĐẸP</a></div>
    <div class="boxLeftPart">
    <asp:DataList ID="dtlNews" runat="server" Width="683px">
        <FooterTemplate>
            <asp:Label ID="lblEmpty" runat="server" Font-Bold="True" Font-Size="Medium" 
                ForeColor="Red" Text="Tu vấn đang cập nhật" 
                Visible="<%# bool.Parse((dtlNews.Items.Count==0).ToString()) %>"></asp:Label>
        </FooterTemplate>
        <ItemTemplate>
        <div id="boxnews">
            <div class="leftcontent">
                <img alt="" width="170px" height="100%" src="images/tuvan/<%# Eval("HinhDaiDien") %>.jpg"style="border:1px solid gray" />
            </div>  
            <div class="rightcontent">
                <h3>
                <%--<a href="Chitiettintuc.aspx?mode=tuvan&idkm=<%# Eval('Idtv') %>">
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("TieuDe") %>' 
                        ForeColor="#FF5050"></asp:Label>
                </a>--%>
                <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# "Chitiettintuc.aspx?mode=tuvan&idkm="+Eval("Idtv") %>' 
                        Text='<%# Eval("TieuDe") %>'></asp:HyperLink>
                </h3>
                <div class="date">
                    <asp:Label ID="Label3" runat="server" 
                        Text='<%# string.Format("{0:dd/MM/yyyy HH:mm}",Eval("NgayNhap")) %>' 
                        Font-Italic="True" Font-Size="X-Small"></asp:Label>
                </div>
                <div class="details">
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("GioiThieu") %>'></asp:Label>
                </div>
                
            </div>
        </div>
        <div style=" width:100%;height:1px; clear: both"></div>
        </ItemTemplate>
    </asp:DataList>

    <div style="float:left;margin-right:5px;margin-top:10px">
    <asp:Button ID="lbtnFirst" runat="server" CausesValidation="false" 
                                        Text="Trang Đầu" onclick="lbtnFirst_Click" />
    </div>
    <div style="float:left;padding-top:4px;margin-top:10px">
        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" 
                                        OnItemDataBound="dlPaging_ItemDataBound" RepeatDirection="Horizontal" 
                                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="4" ForeColor="Black" GridLines="Vertical">
                                        <AlternatingItemStyle BackColor="White" />
                                        <FooterStyle BackColor="#CCCC99" />
                                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                        <ItemStyle BackColor="#F7F7DE" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandName="Paging"
                                                CommandArgument='<%# Eval("PageIndex") %>' Text='<%# Eval("PageText") %>' 
                                                CausesValidation="False"></asp:LinkButton></ItemTemplate>
                                        <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                    </asp:DataList>
         </div>
         <div style="float:left;margin-left:5px;margin-top:10px">
         <asp:Button ID="lbtnLast" runat="server" CausesValidation="false" 
                                        Text="Trang Cuối" onclick="lbtnLast_Click" />
         </div>
</div>
</asp:Content>

